package com.allen.action;

import com.allen.bean.User;
import com.allen.dao.UserDao;

import java.util.List;

public class UserAction {
    private List<User> users;
    public String execute(){
        users = new UserDao().userList();
        return "success";
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }
}
